# 命令都是在 shell 里面运行 bash 是 shell 之一
# input within bash：

git --version

# or

which git

# to check if git is installed

# if not installed, use brew to install

brew install git

# if installed, clone a project using git

git clone git@gitee.com:yingnn/tuto.git

# or

git clone https://gitee.com/yingnn/tuto.git


# gitee.com is the website
# yingnn is my user id at that website
# tuto is the project name
# .git show that the project uses git.
# you can find this project using google chrome by this website:
# gitee.com/yingnn/tuto.git

# tuto project is now at your work directory

ls -d tuto # show project tuto

cd tuto

git status # show project's status

ls # show files

# if you want to change files or add new files, just do it
# after you change files, you may want to check the status

git status

# if you add a new file, you can use

git add the_new_file

# by doing this, git can detect the_new_file's change

git commit -a -m 'change or add files' # commit the changes

git pull # pull changes from website gitee.com

git push # push changes to website gitee.com


